<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="statics/css/top.css" type="text/css">
</head>
<body>
	
		<div class="ymt">
			<div class="top">
			<span class="welcome" onclick="window.location.href='home'">欢迎来到无名租车有限公司</span>
			<div class="tel">400-888-8888</div>
			<div class="help"><a href="help">帮助中心</a></div>
				<!-- <div class="network"><a href="">网站导航</a></div> -->
				<div class="register">
					<c:choose>
						<c:when test="${userinfo!=null }">
							<a href="logout" target="_self">注销</a>
						</c:when>
						<c:otherwise>
							<a href="register">注册</a>
						</c:otherwise>
					</c:choose>
					</div>
					<div class="login">
					<c:choose>
						<c:when test="${userinfo!=null }">
							<a href="user/document">${userinfo.uname }的用户中心</a>
						</c:when>
						<c:otherwise>
							<a href="login">登录</a>
						</c:otherwise>
					</c:choose>
				</div>
			</div>
		</div>
		<div class="ymb">
			<div class="caidan">
				<div class="logo" onclick="window.location.href='home'"><span>WM</span>无名租车</div>
				<ul class="menu">
					<li><a href="<%=request.getContextPath()%>/home" class="first">首  &nbsp;页</a></li>
					<li><a href="<%=request.getContextPath()%>/goods?type=0" class="self">自驾短租</a></li>
					<li><a href="<%=request.getContextPath()%>/goods?type=1" class="day">日租包车</a></li>
					<li><a href="<%=request.getContextPath()%>/goods?type=2" class="airport">接机送机</a></li>
					<li><a href="<%=request.getContextPath()%>/huodong" class="active">活动中心</a></li>
					<li><a href="<%=request.getContextPath()%>/aboutus" class="above">关于我们</a></li>
				</ul>
		</div>
		</div>
	
</body>
</html>